﻿@model System.Collections.Generic.List<string>

<div class="row-fluid">
    <div class="span12">
        @foreach (var item in Model)
        {
            <div class="DeliveryFileItem" style="float: left; margin: 5px; border: solid 1px gainsboro; padding: 5px" onclick="ViewOrderDeliveryFile('@Request.UserHostAddress','@Server.UrlEncode(item)')">
                <div style="float: right; cursor: pointer;"  title="Delete" onclick="DeleteOrderDeliveryFile('@Server.UrlEncode(item)')">x</div>
                <div style="text-align: center">
                    <img src="~/img/Load/delivery_note_icon.png" />
                </div>
                <div data-path='@item'>@Path.GetFileName(item).Replace(".pdf", "")</div>
            </div>
        }
    </div>
</div>
